package com.yanqu.road.logic.bussiness.mail;

import com.yanqu.road.entity.mail.AllMailLanguage;
import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.player.ServerMail;

import java.util.Map;

public class ServerMailBussiness {

	public static Map<Integer, ServerMail> getServerMailMap(){
		return DaoHelper.getServerMailDaoImpl().getServerMailMap();
	}

	public static ServerMail addServerMail(ServerMail serverMail) {
		return DaoHelper.getServerMailDaoImpl().addServerMail(serverMail);
	}

	public static boolean addAllServerMailLanguage(AllMailLanguage allMailLanguage) {
		return DaoHelper.getServerMailDaoImpl().insertNewMailLanguage(allMailLanguage);
	}


	public static Map<Integer, Map<String ,AllMailLanguage>> getAllMailsLanguage() {
		return DaoHelper.getServerMailDaoImpl().getAllMailsLanguage();
	}
}
